<template>
  <div>
    <el-carousel height="400px" style="border-radius: 20px">
      <el-carousel-item v-for="item in items" :key="item">
        <img :src="item" style="width: 100%;height: 100%;object-fit: cover" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import img1 from '../assets/logo26.png'
export default {
  name: "swiper",
  data(){
    return{
      items: [
        img1,
        "http://kaylee.cool/chat5.jpg",
        "http://kaylee.cool/chat7.jpg",
        "http://kaylee.cool/chat8.jpg",
        "http://kaylee.cool/chat9.jpg"
      ]
    }
  }
}
</script>

<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>
